#include "wyzkr688rfswdll.h"
#include "wyzkr688rfswinstance_global.h"

WyZkR688RFSWDLL::WyZkR688RFSWDLL(){
    PLU_FswTecPluginInstanceCreate(LOCALCONTOLLER);
}
WyZkR688RFSWDLL::~WyZkR688RFSWDLL(){

}

QWidget* WyZkR688RFSWDLL::RegisiterPluginUi(){
    return PLU_FswTecPluginInstanceUiRegesiter();
}

void WyZkR688RFSWDLL::FastTimerLoop(){
    TASK_uifast_UiDataUpdate();
    TASK_uifast_ForceScopeUpdate();
    TASK_uifast_RobotScopeUpdate();
}
void WyZkR688RFSWDLL::SlowTimerLoop(){

}

void WyZkR688RFSWDLL::RegisterMainInitTask(){
    TASK_maininit_toRobotTcpServerAdd();
    TASK_maininit_toRobotTcpServerListen();
}
void WyZkR688RFSWDLL::RegisterMainLoopTask(){
    TASK_mainloop_toRobotReceiveLoopRun();
    TASK_mainloop_RfswProcessDeal();
    TASK_mainloop_toRobotSendLoopRun();
    TASK_mainloop_ProcessDataSave();
}

void WyZkR688RFSWDLL::BackendDataRecv(QByteArray Data){
    TASK_RemoteDataRecv(Data);
}
void WyZkR688RFSWDLL::BackendDataSend(QByteArray& Data){
    TASK_RemoteDataSend(Data);
}
